<template>
  <el-dialog
    title="删除"
    :visible.sync="dialogVisible2"
    width="30%"
    :before-close="handleClose">
    <span>删除后无法恢复，确认删除</span>
    <span slot="footer" class="dialog-footer">
    <el-button @click="cancel" class="e-delete-btn">取 消</el-button>
    <el-button type="primary" @click="confirm" class="e-delete-confirm">删 除</el-button>
  </span>
  </el-dialog>
</template>

<script>
export default({
  data(){
      return {

      }
  },
  props:{
    dialogVisible2:{

    }

  },
  methods:{
    cancel(){
      this.$emit('cancelOpt')
    },
    confirm(){
      this.$emit('confirmOpt')
    },
    handleClose(){
      this.$emit('cancelOpt')
    }
  }

})
</script>

